﻿@using Apps.Web.Core;
@using Apps.Common;
@using Apps.Models.PUB;
@using Apps.Web;
@using Apps.Locale;
@using Apps.Models.Sys;
@using Apps.Models.Enum;
@{
    ViewBag.Title = "标记为无效采样数据";
    Layout = "~/Views/Shared/_Index_LayoutEdit.cshtml";
    List<permModel> perm = null;
    string samplingId = ViewBag.samplingId as string;
}
<div class="mvctool bgb">
    @Html.ToolButton("btnSave", "fa fa-save", Resource.Save, ref perm, "Save", true)
    @Html.ToolButton("btnReturn", "fa fa-reply", Resource.Reply, false)
</div>
<script type="text/javascript">
    $(function () {
        $("#btnSave").click(function () {
            //var ExamineRemark = $("#ExamineRemark").val();
            var chExamine = $('input:radio:checked').val();
            //if (chExamine == -1)
            //{
            //    if (ExamineRemark == "") {
            //        $.messageBox5s(Lang.Tip, '请填写审核不通过的说明');
            //        return;
            //    }
            //}
            if ($("form").valid()) {
                $.ajax({
                    url: "@Url.Action("BuChong")",
                    type: "Post",
                    data: $("form").serialize(),
                    dataType: "json",
                    success: function (data) {
                        if (data.type == 1) {
                            window.parent.frameReturnByMes(data.message);
                            window.parent.frameReturnByReload(true);
                            window.parent.frameReturnByClose()
                        }
                        else {
                            window.parent.frameReturnByMes(data.message);
                        }
                    }
                });
            }
            return false;
        });
        $("#btnReturn").click(function () {
            window.parent.frameReturnByClose();
        });
    });
</script>
<style type="text/css">
    table.gridtable {
        font-family: verdana,arial,sans-serif;
        font-size: 11px;
        color: #333333;
        border-width: 1px;
        border-color: #666666;
        border-collapse: collapse;
    }

        table.gridtable th {
            border-width: 1px;
            text-align: center;
            padding: 8px;
            border-style: solid;
            border-color: #666666;
            background-color: #dedede;
        }

        table.gridtable td {
            text-align: center;
            border-width: 1px;
            padding: 8px;
            border-style: solid;
            border-color: #666666;
            background-color: #ffffff;
        }
</style>
@using (Html.BeginForm())
{
    <input type="hidden" id="samplingId" name="samplingId" value="@samplingId" />
    <table class="gridtable">
        <thead>
            <tr>
                <th style="width:60px">
                     
                </th>
                <th style="width:160px">
                     
                </th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td style="width:60px">
                    采样编号
                </td>
                <td style="width:160px">
                    @samplingId
                </td>
            </tr>
            <tr>
                <td style="width:60px">
                    样桶卡号
                </td>
                <td style="width:160px">
                    <input class="text-box single-line" data-val="true" data-val-required="字段是必需的。" id="rfid" name="rfid" type="text" value="" autocomplete="off">
                </td>
            </tr>
            <tr>
                <td style="width:60px">
                    采样重量
                </td>
                <td style="width:160px">
                    <input class="text-box single-line" placeholder="不修改，请保持为空" id="weight" name="weight" type="text" value="" autocomplete="off">
                </td>
            </tr>
            <tr>
                <td style="width:60px">
                    收样状态
                </td>
                <td style="width:160px">
                    <input name="isShouyang" value="设为已收样" type="radio" autocomplete="off">设为已收样
                    <input name="isShouyang" checked="checked" type="radio" value="不修改" autocomplete="off">不修改
                </td>
            </tr>
        </tbody>
    </table>
    @Html.ValidationSummary()
}

